import request from '@/utils/request'

// 查询新闻发布列表
export function listNewsRele(query) {
  return request({
    url: '/xyh/newsRele/list',
    method: 'get',
    params: query
  })
}

// 查询新闻发布详细
export function getNewsRele(id) {
  return request({
    url: '/xyh/newsRele/' + id,
    method: 'get'
  })
}

// 新增新闻发布
export function addNewsRele(data) {
  return request({
    url: '/xyh/newsRele',
    method: 'post',
    data: data
  })
}

// 修改新闻发布
export function updateNewsRele(data) {
  return request({
    url: '/xyh/newsRele',
    method: 'put',
    data: data
  })
}

// 删除新闻发布
export function delNewsRele(id) {
  return request({
    url: '/xyh/newsRele/' + id,
    method: 'delete'
  })
}
